    <!--<script type="text/javascript">
        //定义省/直辖市数组
        var arr_group_company = ["请选择省","北京市","上海市","广东省"];
        //定义市/区二维数组
        var arr_subsidiary = [
                        ["请选择市/区"],
                        ["东城区","西城区","朝阳区","宣武区","昌平区","大兴区","丰台区","海淀区"],
                        ['宝山区','长宁区','丰贤区', '虹口区','黄浦区','青浦区','南汇区','徐汇区','卢湾区'],
                        ['广州市','惠州市','汕头市','珠海市','佛山市','中山市','东莞市']
                    ];
        //获取对象
        var group_company = document.getElementById('group_company_id');
        var subsidiary = document.getElementById('subsidiary_id');
        //初始化菜单
        onload = function () {
            //指定省option标记的个数
            group_company.length = arr_group_company.length;
            //数组数据写入<option>标记中
            for(var i = 0; i < arr_group_company.length; i++){
                group_company.options[i].text = group_company.options[i].value = arr_group_company[i];
            }
            //设置省列表默认选项
            var index = 0;
            group_company.index = index;
            //指定城市option标记的个数
            subsidiary.length = arr_subsidiary[index].length;
            //数组数据写入option标记
            for (var j = 0; j < arr_city[index].length; j++) {
                subsidiary.options[j].text = subsidiary.options[j].value = arr_subsidiary[index][j];
            }
        }
        function alter(index) {
            //修改省列表的选择项
            group_company.index = index;
            //指定城市option标记的个数
            subsidiary.length = arr_subsidiary[index].length;
            //数组中的数据写入option标记
            for (var j = 0; j < arr_subsidiary[index].length; j++) {
                subsidiary.options[j].text = subsidiary.options[j].value = arr_subsidiary[index][j];
            }
        }
        function api_get_subsidiary(){

        }
    </script>
-->
<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">选择集团</label>
        <div class="layui-input-block">
            <select name='group_company_id' id="group_company_id" class='layui-select full-width'>
                <!--{foreach $groups as $group}-->
                <!--{eq name='group.id' value='$vo.group_company_id|default=0'}-->
                <option selected value='{$group.id}'>{$group.name}</option>
                <!--{else}-->
                <option value='{$group.id}'>{$group.name}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">选择子公司</label>
        <div class="layui-input-block">
            <select name='subsidiary_id' id="subsidiary_id" class='layui-select full-width' >
                <!--{foreach $subsidiary as $sub}-->
                <!--{eq name='sub.id' value='$vo.subsidiary_id|default=0'}-->
                <option selected value='{$sub.id}'>{$sub.subsidiary}</option>
                <!--{else}-->
                <option value='{$sub.id}'>{$sub.subsidiary}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">年份</label>
        <div class="layui-input-block">
            <input name="year" 
                   value='{$vo.year|default=""}' title="请输入年份" placeholder="请输入年份" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">关联收入</label>
        <div class="layui-input-block">
            <input name="related_income" 
                   value='{$vo.related_income|default=""}' title="请输入关联收入" placeholder="请输入关联收入" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">非关联收入</label>
        <div class="layui-input-block">
            <input name="non_related_income" 
                   value='{$vo.non_related_income|default=""}' title="请输入非关联收入" placeholder="请输入非关联收入" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">总收入</label>
        <div class="layui-input-block">
            <input name="total_income" 
                   value='{$vo.total_income|default=""}' title="请输入总收入" placeholder="请输入总收入" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">注册资本</label>
        <div class="layui-input-block">
            <input name="registered_capital" 
                   value='{$vo.registered_capital|default=""}' title="请输入注册资本" placeholder="请输入注册资本" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">雇员数</label>
        <div class="layui-input-block">
            <input name="employee" 
                   value='{$vo.employee|default=""}' title="请输入雇员数" placeholder="请输入雇员数" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">主要业务</label>
        <div class="layui-input-block">
             <select name='business_id' class='layui-select full-width' >
                <!--{foreach $Think.config.business_map as $key => $value}-->
                <!--{eq name='key' value='$vo.country|default=""'}-->
                <option selected value='{$key}'>{$value}</option>
                <!--{else}-->
                <option value='{$key}'>{$value}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">业务备注</label>
        <div class="layui-input-block">
            <input name="remarks" 
                   value='{$vo.remarks|default=""}' title="请输入业务备注" placeholder="请输入业务备注" class="layui-input">
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'/>{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
    <script>window.form.render();</script>

</form>
